﻿local moepack = require "packages/moepack/moepack"
local moepack_flower = require "packages/moepack/moepack_flower"
local moepack_heyday = require "packages/moepack/moepack_heyday"
local moepack_heart = require "packages/moepack/moepack_heart"
local moepack_moon = require "packages/moepack/moepack_moon"
local moepack_ghost = require "packages/moepack/moepack_ghost"

local moepack_passer = require "packages/moepack/moepack_passer"
local moepack_moesp = require "packages/moepack/moepack_moesp"
local moepack_moesp2 = require "packages/moepack/moepack_moesp2"
local moepack_moesp3 = require "packages/moepack/moepack_moesp3"

local moepack_token = require "packages/moepack/moepack_token"
local moepack_cards = require "packages/moepack/moepack_cards"
local moepack_cardex = require "packages/moepack/moepack_cardex"
local moepack_cardmagic = require "packages/moepack/moepack_cardmagic"

local pack_list = {
  moepack,
  moepack_flower,
  moepack_heyday,
  moepack_heart,
  moepack_moon,
  moepack_ghost,
  
  moepack_passer,
  moepack_moesp,
  moepack_moesp2,
  moepack_moesp3,
    
	moepack_token,
  moepack_cards,
  moepack_cardex,
  moepack_cardmagic,
}

Fk.translations["zh_CN"] = Fk.translations["zh_CN"] or {}

--[[
-- 将所有关键词描述转化为彩色，全局生效，暂时停用
for k, v in pairs(Fk.translations["zh_CN"]) do
    v = string.gsub(v, "出牌阶段限.-次", "<font color='green'>%1</font>")
    v = string.gsub(v, "阶段技", "<font color='green'>阶段技</font>")
    v = string.gsub(v, "锁定技", "<font color='blue'>锁定技</font>")
    v = string.gsub(v, "限定技", "<font color='red'>限定技</font>")
    v = string.gsub(v, "觉醒技", "<font color='purple'>觉醒技</font>")
    v = string.gsub(v, "使命技", "<font color='brown'>使命技</font>")
    v = string.gsub(v, "转换技", "<font color='#d8a8ad'>转换技</font>")
    v = string.gsub(v, "主公技", "<b>主公技</b>")
    Fk.translations["zh_CN"][k] = v
end
--]]


-- 为本扩展包所有武将填写默认设计者
for _, pack in ipairs(pack_list) do
  for _, g in ipairs(pack.generals) do
    local str = "designer:"..g.name
    if not Fk.translations["zh_CN"][str] or Fk.translations["zh_CN"][str] == "官方" then
      Fk.translations["zh_CN"][str] = "EmoPrincess"
    end
  end
end




return pack_list
